package com.week.service.impl;

import com.week.entity.SysUser;
import com.week.mapper.UserMapper;
import com.week.service.UserService;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private final  UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    @Override
    public SysUser findOne(String tel) {
        return userMapper.findOne(tel);
    }
}
